
<div class="container-fluid">
    <div class="row">
        <div class="col-md-8">
           <div id="left-table">
                {!!  $table !!}
           </div>
        </div>
        <div class="col-md-4">
            <form id="widget-form-5f30ccbbae4a5" method="POST" action="records2" class="form-horizontal" accept-charset="UTF-8" pjax-container="1">
                {{ csrf_field() }}
                <div class="box-body fields-group">
                    <input type="hidden" name="client_id" value="{{ $model->client_id }}" class="client_id">
                    <input type="hidden" name="employee_id" value="{{ $model->employee_id  }}" class="employee_id">
                    <div class="form-group  ">
                        <label for="records" class="col-sm-2  control-label">跟进记录</label>
                        <div class="col-sm-8">
                            <textarea name="records" class="form-control records" rows="5" placeholder="输入 跟进记录"></textarea>
                        </div>
                    </div>
                    <div class="form-group  ">
                        <label for="plan" class="col-sm-2  control-label">跟进计划</label>
                        <div class="col-sm-8">
                            <textarea name="plan" class="form-control plan" rows="5" placeholder="输入 跟进计划"></textarea>
                        </div>
                    </div>

                    <div class="form-group  ">
                        <label for="record_at" class="col-sm-2  control-label">计划时间</label>
                        <div class="col-sm-8">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="fa fa-calendar fa-fw"></i></span>
                                <input style="width: 160px" type="text" id="record_at" name="record_at" value="" class="form-control record_at" placeholder="输入 计划时间">
                            </div>
                        </div>
                    </div>
                    <input type="hidden" name="created_at" value="{!! date('Ymd H:i:s', time()) !!}" class="created_at">
                </div>

                <!-- /.box-body -->
                <div class="box-footer">
                    <div class="col-md-2"></div>
                    <div class="col-md-8">
                        <div class="btn-group pull-left">
                            <button type="reset" class="btn btn-warning pull-right">重置</button>
                        </div>

                        <div class="btn-group pull-right">
                            <button type="submit" class="btn btn-info pull-right" >提交</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function()
    {
        var url = $('form').attr('action');
        console.log(url);
       function r_submit() {
           $.post()
       }
    });

</script>
